package org.jhotdraw.app.action.edit;

import static org.jhotdraw.draw.AttributeKeys.FONT_BOLD;

import java.awt.event.ActionEvent;

import javax.swing.JComponent;

import org.jhotdraw.draw.TextFigure;
import org.jhotdraw.util.ResourceBundleUtil;

import stateDiagram.figures.StateFigure;

import edu.umd.cs.findbugs.annotations.Nullable;

public class AddInternalTransitionAction extends AbstractSelectionAction{
	
	 public final static String ID = "edit.AddInternalTransition";
     private StateFigure callingFigure = null;

	public AddInternalTransitionAction(@Nullable JComponent target, StateFigure fig){
	super(target);	
	 ResourceBundleUtil labels = ResourceBundleUtil.getBundle("stateDiagram.Labels");
	 labels.configureAction(this, ID);
	 callingFigure = fig;
	}
	
	
	 public void actionPerformed(ActionEvent evt){
		 String event = "default";
		 String action= "default";
		
		 callingFigure.addInternalTransition(event, action);
	 }
}
